#ifndef YS_SENIOR_CHECK_H
#define YS_SENIOR_CHECK_H

#include <QWidget>
#include <QSqlQuery>
#include <QMap>
#include <QSqlQueryModel>
#include <QTimer>

namespace Ui {
class Ys_senior_check;
}

class Ys_senior_check : public QWidget
{
    Q_OBJECT

public:
    explicit Ys_senior_check(QWidget *parent = nullptr);
    ~Ys_senior_check();

signals:

    void destroyW( QString );

private slots:

    void wind_open_time_out();

    void closeEvent(QCloseEvent *event) override;

    void on_pb_exit_clicked();

    void on_pb_search_clicked();

    void on_tv_patient_list_doubleClicked(const QModelIndex &index);

    void on_tv_patient_list_clicked(const QModelIndex &index);

    void on_pb_save_clicked();

private:
    Ui::Ys_senior_check *ui;


    QSqlQuery *qrm, *qro, *qrot;
    //QSqlQueryModel mdList ;//
    QString sq;
    QSqlQueryModel *md;

    QTimer * tm_window_open;

};

#endif // YS_SENIOR_CHECK_H
